package com.ljy.iecasbasedemo.repository

import org.unicorn.android.base.BaseRepository
import org.unicorn.android.base.net.toEntity
import com.ljy.iecasbasedemo.app.testUrl
import com.ljy.iecasbasedemo.bean.TestBean

/**
 *
 * @author     : liujianyou
 * @date : 2022/02/17 09:00
 * @Description:
 */
class MainRepository : BaseRepository() {
    suspend fun requestApi(): TestBean? {
        return get("facts".testUrl).toEntity<TestBean>()
    }
}